#pragma once
#include<boost/asio.hpp>
#include<global_def.h>
class Session
{
	public:
		Session(boost::asio::io_context& ioc);
		boost::asio::ip::tcp::socket &get_socket();
		void Start();
		void handle_send(const::boost::system::error_code &error);
		void handle_recive(const::boost::system::error_code& error,size_t recived_len);
		bool check_pos(int pos1,int pos2);
	boost::asio::ip::tcp::socket soc;
	int max_len = 1024;
	char data[1024];
};
